home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / mus / misc / maplay1_2.lha / maplay / Makefile.amiga < prev    next >
Makefile  |  1995-02-19  |  3KB  |  94 lines

  1. #
  2. #  @(#) Makefile 1.10, last edit: 6/21/94 11:30:23
  3. #  @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)
  4. #  @(#) Berlin University of Technology
  5. #
  6. #  This program is free software; you can redistribute it and/or modify
  7. #  it under the terms of the GNU General Public License as published by
  8. #  the Free Software Foundation; either version 2 of the License, or
  9. #  (at your option) any later version.
  10. #
  11. #  This program is distributed in the hope that it will be useful,
  12. #  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. #  GNU General Public License for more details.
  15. #
  16. #  You should have received a copy of the GNU General Public License
  17. #  along with this program; if not, write to the Free Software
  18. #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. #
  20.  
  21. #
  22. #  Changes from 1.1 to 1.2:
  23. #    - dependencies described directly, no more makedepend required
  24. #    - all .c source files rename to .cc files
  25. #    - strip command included after a successful compilation
  26. #    - this makefile is now "Star Trek The Next Generation" compatible!
  27. #
  28.  
  29. #  19. Feb. 1995 This is a Makefile to compile maplay under AmigaOS
  30. #           Erik Johannessen (erik2@afrodite.kih.no)
  31. #
  32.  
  33. CC = g++
  34. CFLAGS = -DIff -s -m68000 -O3
  35. # debugging: -ggdb -DDEBUG
  36. # profiling: -pg (gprof) or -p (prof)
  37. # strip command has to be removed for debugging or profiling
  38.  
  39.  
  40. OBJS = maplay.o ibitstream.o header.o scalefactors.o subband_layer_1.o subband_layer_2.o \
  41.        synthesis_filter.o obuffer.o crc.o ulaw.o
  42.  
  43.  
  44. .SUFFIXES:    .cc
  45.  
  46. all:        maplay
  47.  
  48. install:
  49.         @./configuration.sh
  50.  
  51. maplay:        $(OBJS)
  52.         $(CC) $(CFLAGS) $(OBJS) -s -o $@ $(LIBRARIES) -lm
  53.  
  54. .cc.o:
  55.         $(CC) -c $(CFLAGS) $(INCLUDEDIRS) $*.cc -o $@
  56.  
  57. depend:
  58.         makedepend $(INCLUDEDIRS) -w100 *.cc
  59.  
  60. clean:
  61.         -rm -f maplay makedepend_done Makefile.bak
  62.         -rm -f *.o
  63.  
  64. tags:
  65.         -rm -f TAGS
  66.         etags *.cc *.h Makefile configuration.sh
  67.  
  68. it:
  69.         @echo >/dev/null
  70. so:
  71.         @echo I\'ll do my very best, Captain.
  72.         @make install
  73.         @echo Further orders, Sir\?
  74.  
  75.  
  76. crc.o:            all.h crc.h
  77. header.o:        all.h crc.h header.h ibitstream.h
  78. ibitstream.o:        all.h ibitstream.h
  79. maplay.o:        all.h audio_includes.h crc.h header.h ibitstream.h obuffer.h \
  80.             scalefactors.h subband.h subband_layer_1.h subband_layer_2.h \
  81.             synthesis_filter.h ulaw.h
  82. scalefactors.o:        all.h scalefactors.h
  83. ulaw.o:            all.h ulaw.h
  84. obuffer.o:        all.h audio_includes.h crc.h header.h ibitstream.h obuffer.h ulaw.h
  85. subband_layer_1.o:    all.h audio_includes.h crc.h header.h ibitstream.h obuffer.h \
  86.             scalefactors.h subband.h subband_layer_1.h synthesis_filter.h ulaw.h
  87. subband_layer_2.o:    all.h audio_includes.h crc.h header.h ibitstream.h obuffer.h \
  88.             scalefactors.h subband.h subband_layer_2.h synthesis_filter.h ulaw.h
  89. synthesis_filter.o:    all.h audio_includes.h crc.h header.h ibitstream.h obuffer.h \
  90.             synthesis_filter.h ulaw.h
  91.  
  92.  
  93. # DO NOT DELETE THIS LINE -- make depend depends on it.
  94.